﻿// <copyright file="_SECURITY_HDR.cs" company="Sinclair Community College">
// Copyright 2010 Sinclair Community College
// </copyright>
// <originalAuthor>Patrick S. Seymour (patrick.seymour@gmail.com)</originalAuthor>

namespace SinclairCC.AppV
{
    using System;

    public class _SECURITY_HDR
    {
        /// <summary>
        /// Indicates whether this security descriptor is in use or free.
        /// </summary>
        private SecurityHeaderType typeId;

        /// <summary>
        /// Stores the total size of the security descriptor including _SECURITY_HDR.
        /// </summary>
        private uint entryLength;

        /// <summary>
        /// Stores the size of the security descriptor.
        /// </summary>
        private uint dataLength;

        /// <summary>
        /// Initializes a new instance of the _SECURITY_HDR class.
        /// </summary>
        public _SECURITY_HDR()
        {
        }

        /// <summary>
        /// Gets a value indicating whether this security descriptor is in use.
        /// </summary>
        public SecurityHeaderType Type
        {
            get { return this.typeId; }
        }

        /// <summary>
        /// Gets the total size of the security descriptor, including the header.
        /// </summary>
        public uint EntryLength
        {
            get { return this.entryLength; }
        }

        /// <summary>
        /// Gets the size of the security descriptor.
        /// </summary>
        public uint DataLength
        {
            get { return this.dataLength; }
        }
    }
}
